/* 首页容器 */
.dashboard-container {
  width: 100%;
}

/* 首页头部 */
.dashboard-header {
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.dashboard-title {
  margin-bottom: 8px;
  color: #333;
}

.dashboard-subtitle {
  color: #666;
  margin-bottom: 0;
}

/* 统计卡片行 */
.stat-cards-row {
  margin-bottom: 24px;
}

/* 统计卡片 */
.stat-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.stat-icon-large {
  font-size: 24px;
  color: #1890ff;
}

/* 内容行 */
.dashboard-content-row {
  margin-bottom: 24px;
}

/* 仪表板卡片 */
.dashboard-card {
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-card .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
}

.dashboard-card .ant-card-title {
  font-weight: 500;
  color: #333;
}

/* 设备类型卡片 */
.device-type-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  text-align: center;
  padding: 16px;
}

.device-type-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.device-type-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.stat-icon {
  font-size: 20px;
  color: #1890ff;
  margin-bottom: 8px;
}

.device-type-info {
  text-align: center;
}

.device-type-name {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.device-type-value {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* 活动列表 */
.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.activity-title {
  font-size: 14px;
  color: #333;
}

.activity-time {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
}

.time-icon {
  margin-right: 4px;
}

/* 快速操作区域 */
.quick-actions {
  margin-bottom: 24px;
}

.quick-action-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #e8e8e8;
}

.quick-action-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #1890ff;
}

.quick-action-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.quick-action-icon {
  font-size: 32px;
  color: #1890ff;
  margin-bottom: 12px;
}

.quick-action-text {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .dashboard-header {
    text-align: center;
  }
  
  .stat-cards-row .ant-col {
    margin-bottom: 16px;
  }
  
  .dashboard-content-row .ant-col {
    margin-bottom: 16px;
  }
  
  .quick-actions .ant-col {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .dashboard-title {
    font-size: 20px;
  }
  
  .stat-icon-large {
    font-size: 20px;
  }
  
  .quick-action-icon {
    font-size: 24px;
  }
}

/* 滚动条样式 */
.activity-list::-webkit-scrollbar {
  width: 6px;
}

.activity-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}